﻿using System;
using System.Collections.Generic;
using System.Text;

namespace class3Homework
{
    class square:geometry
    {
        private double side;
        public override double Area
        {
            get
            {
                return side * side;
            }
        }
        public double Side
        {
            get
            {
                return side;
            }
            set
            {
                side = value;
            }
        }
        public square(double side):base("square")
        {
            this.side = side;
        }
        public override bool selfCheck()
        {
            if (side > 0 && Name.Equals("square"))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
